package cn.chen.数据结构.链表;

// 双向链表的节点类
public class HeroNodeDouble {

    public int no;
    public String name;
    public String linkName;

    public HeroNodeDouble pre;  // 指向节点的前一个节点
    public HeroNodeDouble next; // 指向节点的后一个节点


    public HeroNodeDouble(int no, String name, String linkName) {
        this.no = no;
        this.name = name;
        this.linkName = linkName;
    }

    @Override
    public String toString() {
        return "HeroNodeDouble{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", linkName='" + linkName + '\'' +
                '}';
    }
}
